class analysis {
    //地址解析
    public static hrefValue(index){
        var href = location.href;
        var str = href.substr(href.indexOf("?") + 1);
        var arr = str.split("&");
        var obj = {};
        for(var i = 0,lg = arr.length;i < lg;i ++){
            let a = arr[i].split("=");
            obj[a[0]] = a[1];
        }
        return obj[index];
    }
    
}